csslookup: Query the bitmask
authorBenjamin Otte <otte@redhat.com>
Sat, 14 Jan 2012 15:58:52 +0000 (16:58 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 2 Feb 2012 02:13:38 +0000 (03:13 +0100)
Checking if the value is NULL is the wrong thing to do - the bitmask is
usd to keep track of that.

The reason for that will become apparent in the next patch.

gtk/gtkcsslookup.c

index 76bdb484d33355195957e9595569abd1c7ee0daa..fce852845ab1c7decae54fab429dc1ecb13d57e4 100644 (file)
@@ -72,7 +72,7 @@ _gtk_css_lookup_is_missing (const GtkCssLookup *lookup,
 {
   g_return_val_if_fail (lookup != NULL, FALSE);
 
-  return lookup->values[id].value == NULL;
+  return _gtk_bitmask_get (lookup->missing, id);
 }
 
 /**